package com.alan.mapper;

import com.alan.entity.Music;
import com.alan.entity.MusicList;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface MusicMapper {

    @Select("select * from db_list")
    List<MusicList> getAllMusicList();

    @Select("select * from db_music where id = #{id}")
    Music getMusicById(Integer id);
}
